<div nz-form-item nz-row style="margin-top:15px;margin-bottom:10px;">
  <div nz-col [nzSpan]="6">
    <button nz-button [nzType]="'primary'" [nzSize]="'small'" col-offset-2 (click)="toBack()">
      <i class="anticon anticon-left"></i>
      <span>返回</span>
    </button>
  </div>
</div>
<nz-table #nzTable [nzDataSource]="list" nzSize="middle" [nzBordered]="true" [nzIsPagination]="false" (nzDataChange)="displayDataChange($event)">
  <thead nz-thead>
    <tr>
      <th nz-th>
        <span>救援时间</span>
      </th>
      <th nz-th>
        <span>事故原因</span>
      </th>
      <th nz-th>
        <span>救援单位</span>
      </th>
      <th nz-th>
        <span>救援小组负责人</span>
      </th>
      <th nz-th>
        <span>电梯管理单位负责人签字</span>
      </th>
      <th nz-th>
        <span>附件</span>
      </th>
      <th nz-th>
        <span>导出</span>
      </th>
    </tr>
  </thead>
  <tbody nz-tbody>
    <tr nz-tbody-tr *ngFor="let data of list">
      <td nz-td>{{data.rescueEndTime | timeTrans}}</td>

      <td nz-td>{{data.accidentReason}}</td>
      <td nz-td>{{data.rescuePartyName}}</td>
      <td nz-td>
        <img *ngIf="data.rescueUserSignUrl" src="{{data.rescueUserSignUrl}}" width="120px" height="40px" />
      </td>
      <td nz-td>
        <img *ngIf="data.securityAdminSignUrl" src="{{data.securityAdminSignUrl}}" width="120px" height="40px" />
      </td>

      <td nz-td>
        <img style="margin-left:4px;" (click)="showLargeImage(titlepic,contentpic,footerpic,pic)" *ngFor="let pic of getPics(data.picUrl)"
          src="{{conf.IP+conf.API.getUpload+pic}}" width="30px" height="30px" />
      </td>
      <td nz-td>
        <span>
          <button nz-button [nzSize]="'small'" [nzType]="'primary'" (click)="export(data.id)">导出</button>
        </span>
      </td>

    </tr>
  </tbody>
</nz-table>
<nz-pagination [nzPageIndex]="elevatorRescueBean.currentPage" nzShowTotal [nzTotal]="total" nzShowSizeChanger (nzPageSizeChange)="nzPageSizeChange($event)"
  (nzPageIndexChange)="nzPageIndexChange($event)" (nzPageIndexClickChange)="nzPageIndexClickChange($event)" [nzPageSize]="elevatorRescueBean.pageSize"></nz-pagination>


<ng-template #titlepic>
  <span>图片</span>
</ng-template>
<ng-template #contentpic>
  <enlarge-pic [inValue]="picList" (outPut)="addOutPut($event)"></enlarge-pic>
</ng-template>
<ng-template #footerpic>
  <div>
  </div>
</ng-template>
